package com.kxf.pushkeepalive.service;

import android.accessibilityservice.AccessibilityService;
import android.content.Intent;
import android.util.Log;
import android.view.accessibility.AccessibilityEvent;

import com.kxf.pushkeepalive.process.PushRemoteService;

/**
 * @ProjectName: AndroidTestDemo
 * @Package: com.kxf.pushkeepalive.service
 * @ClassName: PushAccessibilityService
 * @Description: 无障碍服务
 * @Author: kuangxuefeng
 * @qq: 1024883177
 * @CreateDate: 2020/6/22 21:22
 */
public class PushAccessibilityService extends AccessibilityService {
    @Override
    public void onAccessibilityEvent(AccessibilityEvent event) {
        Log.d("PushAccessibility", "onAccessibilityEvent=" + event);
        startService(new Intent(this, PushRemoteService.class));
    }

    @Override
    public void onInterrupt() {
        Log.d("PushAccessibility", "onInterrupt");
    }

    @Override
    protected void onServiceConnected() {
        super.onServiceConnected();
    }
}
